import request from "@/utils/request";

/* 应用商店-成交记录管理-获取列表数据*/
export function queryListRequest(data) {
  return request({
    url: "/management-admin/resourceTradeRecord/queryByPage",
    method: "post",
    data,
  });
}

//新增
export function addRequest(data) {
  return request({
    url: "/management-admin/resourceTradeRecord/add",
    method: "post",
    data,
  });
}
//编辑
export function editRequest(data) {
  return request({
    url: "/management-admin/resourceTradeRecord/edit",
    method: "post",
    data,
  });
}
//删除
export function deleteRequest(id) {
  return request({
    url: "/management-admin/resourceTradeRecord/delete?id=" + id,
    method: "get",
  });
}

//应用名称搜索
export function searchAppNameRequest(params) {
  return request({
    url: "/management-admin/resourceTradeRecord/searchAppName",
    method: "get",
    params,
  });
}

export function searchuserNameRequest(params) {
  return request({
    url: "/management-admin/resourceTradeRecord/countByName",
    method: "get",
    params,
  });
}
